package com.ipzoe.cms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ipzoe.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ipzoe.common.core.domain.BaseEntity;

/**
 * 文章对象 cms_article
 * 
 * @author eric
 * @date 2020-08-15
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cms_article")
public class Article implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    private String titleZhtw;

    /** 文章分类 */
    @Excel(name = "文章分类")
    private Long categoryId;

    private String logoUrl;

    @Excel(name = "文章概要")
    private String outline;

    private String outlineZhtw;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderNum;

    /** 内容 */
    private String content;

    private String contentZhtw;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** $column.columnComment */
    private String createBy;

    /** $column.columnComment */
    private String updateBy;

    /** $column.columnComment */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** $column.columnComment */
    private Integer delFlag;
}
